package com.esunrise.shop.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.esunrise.shop.common.entity.SysNotice;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysNoticeMapper extends BaseMapper<SysNotice> {
    List<SysNotice> findByReceiveTypeLimit(int receive, int type, int preNum, int sufNum);

    int deleteByIdOld(int id);

    int insertOld(String title, String context, int type, int receive, long createTime);
}
